//
//  Login2View.m
//  UniversalApp
//
//  Created by 志刚杨 on 2018/3/25.
//  Copyright © 2018年 voidcat. All rights reserved.
//

#import "Login2View.h"
@implementation Login2View

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if(self)
    {
        _wel = [[UIImageView alloc] init];
        _wel.image = IMAGE_NAMED(@"TLogin");
        _wel.contentMode = UIViewContentModeScaleAspectFill;
        _wel.frame = self.bounds;
        [self addSubview:_wel];
    }
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(removieLoginView)
                                                 name:KinitConfigLoginSuccess
                                               object:nil];
    
    return self;

}

- (void)removieLoginView {
    [self removeFromSuperview];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
